/*
 * Copyright (c) 2015, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package com.fpx.open.platform.domain.ae.batch_send;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlType;

import com.fpx.open.platform.domain.ae.EventHeader;

/**
 * 批量发送事件
 * @author shiwei
 * @date 2015年7月4日
 */
@XmlType(propOrder = { "eventHeader", "eventBody" })
public class BatchSendEvent {
	@NotNull(message="eventHeader不能为空")
    @Valid
    private EventHeader eventHeader;
	
	@NotNull(message="eventBody不能为空")
    @Valid
    private BatchSendEventBody eventBody;

	public EventHeader getEventHeader() {
		return eventHeader;
	}

	public void setEventHeader(EventHeader eventHeader) {
		this.eventHeader = eventHeader;
	}

	public BatchSendEventBody getEventBody() {
		return eventBody;
	}

	public void setEventBody(BatchSendEventBody eventBody) {
		this.eventBody = eventBody;
	}
}
